package bean;

import java.util.ArrayList;

/**
 * Created by yuxiaogang on 2017/3/14.
 */

public class TreeNewData {
    private ArrayList<TreeNewData> children;
    private String id;
    private String type;
    private String text;
    private StateBean state;

    public ArrayList<TreeNewData> getChildren() {
        return children;
    }

    public void setChildren(ArrayList<TreeNewData> children) {
        this.children = children;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public StateBean getState() {
        return state;
    }

    public void setState(StateBean state) {
        this.state = state;
    }

    public static class StateBean {
        /**
         * opened : true
         */

        private boolean opened;

        public boolean isOpened() {
            return opened;
        }

        public void setOpened(boolean opened) {
            this.opened = opened;
        }
    }

    @Override
    public String toString() {
        return "TreeNewData{" +
                "children=" + children +
                ", id='" + id + '\'' +
                ", type='" + type + '\'' +
                ", text='" + text + '\'' +
                ", state=" + state +
                '}';
    }
}
